package com.plan
/**
 * The Params entity.
 *
 * @author  michael.geng  mokesoft
 *
 *
 */
class Params {
    static mapping = {
         table 'pm_params'
         // version is set to false, because this isn't available by default for legacy databases
         version true
         id generator:'identity', column:'ID'
         sort "parmType"
    }
    Integer id
    String sn
    String name
    String remark
    String parmType
    Long version
    Date dateCreated
    Date lastUpdated

    static constraints = {
        sn(size: 0..30)
        name(size: 0..50)
        remark(size: 0..500)
        parmType(size: 0..30)
        lastUpdated()
        
    }
    String toString() {
        return "${sn}--${name}" 
    }
}
